<style type="text/css">
    .modal-lg {
        width: 90%;
    }
</style>
<div class="modal-header width90">
    <h4 class="modal-title">人员信息</h4>
</div>
<div class="modal-body width90">
    <div class="container-fluid form-horizontal ">
        <div class="panel panel-default">
            <table class="table table-bordered table-hover">
                <thead>
                    <tr>
                        <th class="text-center col-md-1">姓名</th>
                        <th class="text-center col-md-2">电话</th>
                        <th class="text-center col-md-1">性别</th>
                        <th class="text-center col-md-1">游客类型</th>
                        <th class="text-center col-md-3">身份证号</th>
                        <th class="text-center col-md-2">订单码</th>
                        <th class="text-center col-md-4" ng-show="false">游客id</th>
                        <th class="text-center col-md-2">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="obj in objs">
                        <td class="text-center">{{obj.name}}</td>
                        <td class="text-center">{{obj.mobile}}</td>
                        <td class="text-center">{{obj.sex_name}}</td>
                        <td class="text-center">{{obj.tourist_type_name}}</td>
                        <td class="text-center">{{obj.cardno}}</td>
                        <td class="text-center">{{obj.order_code}}</td>
                        <td class="text-center" ng-show="false">{{obj.lot_id}}</td>
                        <td class="text-center">
                            <select class="col-xs-4 form-control input-sm" ng-model="obj.assembling_place">
                                <option value="{{item}}" ng-repeat="item in selectArray">{{item}}</option>
                            </select>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="text-right">
	    <pagination 
        total-items="totalItems" 
        ng-model="currentPage" 
        ng-change="load()"
        previous-text="上一页" 
        next-text="下一页" 
        first-text="首页" 
        last-text="尾页" 
        max-size="5" 
        boundary-links="true"
        rotate="false"
        num-pages="itemsPerPage"
        class="m-t-none m-b"></pagination>
	 </div>

      <table  class="table table-bordered table-hover" id="Excel_table" ng-show="false" style="border-collapse:collapse">
                <thead>
                    <caption ><h2> 旅行社导游出团计划及结算表</h2></caption>
                    
                    <tr >
                        <td  colspan="9" style="font-size: 11px">线路名称：{{firstitem.product_name}}</td>
                    </tr>
                    <tr style="border: thin solid #606060;">
                        <td colspan="4" style="font-size: 11px" class="text-center col-md-3">计调：</td>                        
                        <td  colspan="5" style="font-size: 11px">团期：{{firstitem.tour_date}}</td>
                    </tr>
                    <tr style="border: thin solid #606060;">
                        <td colspan="4" style="font-size: 11px" class="text-center col-md-4">导游：{{wjq.contacts_name}} 电话：{{wjq.phone_num}}</td>
                        <td colspan="5" style="font-size: 11px" class="text-center col-md-5">车：{{wjq.car_num}},{{wjq.suv}}</td>
                        
                    </tr>
                    <tr style=" border: thin solid #606060;">
                        <th class="text-center " style="font-size: 11px">座位号</th>                        
                        <th class="text-center " style="font-size: 11px">详细来源</th>                        
                        <th class="text-center " style="font-size: 11px">姓名</th>
                        <th class="text-center " style="font-size: 11px">电话</th>
                        <th class="text-center " style="font-size: 11px">类型</th>
                        <th class="text-center " style="font-size: 11px">占座</th>
                        <th class="text-center " style="font-size: 11px">车收款</th>
                        <th class="text-center " style="font-size: 11px">上车地点</th>
                        <th class="text-center " style="font-size: 11px">上车时间</th>
                        
                    </tr>
                </thead>
                <tbody ng-repeat="obj in objs1" >
                    <tr style="border: thin solid #606060;">
                        <th class="text-center">{{$index+1}}</th>
                        <th class="text-center">{{obj.from_app_id}}</th>
                        <th class="text-center">{{obj.name}}</th>
                        <th class="text-center">{{obj.mobile}}</th>
                        <th class="text-center">{{obj.tourist_type_name}}</th>
                        <th class="text-center"></th>
                        <th class="text-center" ng-show="false"></th>
                        <th class="text-center">{{didianarr[$index][0]}}</th>
                        <th class="text-center">{{didianarr[$index][1]}}</th>
                        <!--<th class="text-center">沈阳桃仙机场北^9:00</th>-->
                        
                        
                    </tr>
                    <tr style="border: thin solid #606060;" ng-if="show">
                        <td class="text-center"  colspan="9">补充说明：{{obj.order_remark}}</td>
                    </tr>
                   
                    </tbody>
                    
                    <tbody> 
                        <tr style="border: thin solid #606060;">
                            <th colspan="9" class="text-center"></th>
                        </tr>
                    <tr style="border: thin solid #606060;">
                        <!-- 可以使用rowspan和colspan来合并单元格 -->
                        <td colspan="3" class="text-center" style="font-size: 11px">合计</td>
                        <th colspan="1" class="text-center" style="font-size: 11px">————</th>
                        <th colspan="1"class="text-center" style="font-size: 11px">{{allpeople}}</th>
                        <th colspan="1" class="text-center" style="font-size: 11px"></th>
                        <th colspan="1" class="text-center" style="font-size: 11px"></th>
                        <th colspan="1" class="text-center" style="font-size: 11px">————</th>
                        <th colspan="1" class="text-center" style="font-size: 11px">————</th>                        
                    </tr>
                    <tr style="border: thin solid #606060;">
                        <!-- 可以使用rowspan和colspan来合并单元格 -->
                        <th colspan="2" rowspan="2" class="text-center" style="font-size: 11px">支出费用明细</th>
                        <td colspan="2" class="text-center" style="font-size: 11px">门票支出：</td>
                        <td colspan="3"class="text-center" style="font-size: 11px">导服：</td>
                        <td colspan="2" rowspan="2" class="text-center" style="font-size: 11px">支出合计：</td>                       
                    </tr>
                     <tr style="border: thin solid #606060;">
                        <!-- 可以使用rowspan和colspan来合并单元格 -->
                        <td colspan="2" class="text-center" style="font-size: 11px">借团款：</td>
                        <td colspan="3" class="text-center" style="font-size: 11px"></td>                      
                    </tr>

                    <tr style="border: thin solid #606060;">
                        <!-- 可以使用rowspan和colspan来合并单元格 -->
                        <th colspan="2"  class="text-center" style="font-size: 11px">导游还款</th>
                        <td colspan="5" class="text-center" style="font-size: 11px">其他收入：</td>                                             
                        <td colspan="2"  class="text-center" style="font-size: 11px">还款金额：</td>                       
                    </tr>
                    
                    <tr style="border: thin solid #606060;">
                        <!-- 可以使用rowspan和colspan来合并单元格 -->
                        <td colspan="4" class="text-center" style="font-size: 11px">计调签字：</td> 
                        <td colspan="5" class="text-center" style="font-size: 11px">导游签字：</td>                                                                                                         
                    </tr>
                     <tr style="border: thin solid #606060;">
                        <!-- 可以使用rowspan和colspan来合并单元格 -->
                        <td colspan="4" class="text-center" style="font-size: 11px">财务签字：</td>                     
                        <td colspan="5" class="text-center" style="font-size: 11px">结算日期：</td>                                                                                      
                    </tr>
                    <tr style="border: thin solid #606060;">
                        <!-- 可以使用rowspan和colspan来合并单元格 -->
                        <th colspan="9" class="text-center" style="font-size: 10px">备注：导游回团后务必认真填写结算单，由计调审核无误后签字存档，收支余额交付财务人员。</th>                                                                                      
                    </tr>

                   
                </tbody>
            </table>
     
</div>
<div class="modal-footer width90">
    <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="cancel()" style="margin-left: 10px">关闭</button>
    <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="ok()" >确认</button>
    <a id="dlink" ng-show="false"  download="旅行社导游出团计划及结算表.xls">导出</a>
    <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="exportToExcel('#Excel_table')" >导出</button>
</div>